package business.report.impl;

import business.report.SupervisionEnterpriseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.SupervisionEnterprise;
import report.domain.SupervisionEnterpriseCriteria;
import report.mapper.SupervisionEnterpriseMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "supervisionEnterpriseService")
public class SupervisionEnterpriseServiceImpl implements SupervisionEnterpriseService{
    @Autowired
    SupervisionEnterpriseMapper supervisionEnterpriseMapper;

    @Override
    public List<SupervisionEnterprise> getSupervisionEnterprise() {
        SupervisionEnterpriseCriteria criteria = new SupervisionEnterpriseCriteria();
        criteria.createCriteria().getAllCriteria();
        return supervisionEnterpriseMapper.selectByExample(criteria);
    }
}
